
var Menu = {
    init : function(){
	var tweenFademenutopOver = function() {
	    $$('#menutop li div').fade('1');
	}

	var tweenFademenutopOut = function() {
	    $$('#menutop li div').fade('0');
	}
        
	$$('#menutop li div').setStyle('opacity','0');
	$$('#menutop li','tl').addEvent('mouseover',function() {
	    clearTimeout (this.timeout);
	    this.timeout = setTimeout (tweenFademenutopOver, 500);
	});
	$$('#menutop li','tl').addEvent('mouseout',function() {
	    clearTimeout (this.timeout);
	    this.timeout = setTimeout (tweenFademenutopOut, 500);
	});
    }
}

window.addEvent('domready', function() {
    Menu.init();
});